package user;

import operation.*;

import java.util.Scanner;

public class Resident extends User{

    public Resident() {
        super.iOperation=new IOperation[] {
                new ExitChild(),
                new Register(),
                new SearchRegister(),
                new ModifyRegister(),
                new DelRegister(),
                new SearchResult()
        };
    }
    @Override
    public int menu() {
        Scanner scanner = new Scanner(System.in);
        System.out.println("************* 欢迎来到核酸信息管理系统！ **************");
        System.out.println("1.核酸预约登记");
        System.out.println("2.预约信息查询");
        System.out.println("3.预约信息修改");
        System.out.println("4.预约信息删除");
        System.out.println("5.检测报告查询");
        System.out.println("0.退出当前系统");
        System.out.print("请选择你的操作：");
        int choice = scanner.nextInt();
        return choice;
    }
}
